package com.service;

import org.springframework.stereotype.Service;

import com.common.utils.DateUtils;
import com.common.utils.base.UuidUtil;
import com.entity.Complaint;
import com.service.base.BaseServiceImp;

@Service("ComplaintService")
public class ComplaintServiceImpl extends BaseServiceImp<Complaint> implements ComplaintService{

	@Override
	public String insert(Complaint o) {
		o.setId(UuidUtil.get32UUID());
		o.setComplaintState(1);
		o.setComplaintTime(DateUtils.getDate("yyyy/MM/dd HH:mm:ss"));
		baseDao.insert(o);
		return o.getId();
	}
	
}
